<template>
	<view class="page">
		<view class="header" :style="{'height':statusBarHeight+'px'}">
			<view class="navon" :style="{'height':statusBarHeight+'px','padding-top':statusBarHeight1+'px'}">
				<view class="header-back" @click="goBack()">
					<i class="iconfont" style="font-size: 20px;">&#xe605</i>
				</view>
				<view class="search-input" :style="{'height':(titleBarHeight)+'px'}">
					<input type="text" placeholder="请输入搜索内容" v-model="searchContent" @confirm="search(isSelected)"
						confirm-type="search" />
					<i class="iconfont" style="padding-left: 60rpx;" @click="search(isSelected)">&#xe60a</i>
				</view>
			</view>
		</view>
		<view :style="{'height':statusBarHeight+'px'}"></view>
		<view class="keyword-tab" v-if="isShow === false">
			<view v-if="historyList.length>0" style="margin-bottom: 20rpx;">
				<view class="title" style="display: flex;justify-content: space-between;">
					<view>
						历史记录
					</view> <i class="iconfont" style="margin-right: 60rpx;" @click="delHistory">&#xe6a3</i>
				</view>
				<view class="tab1">
					<view class="tab11" v-for="item,index in historyList" :key="index" @click="tagSearch(item.name)">
						{{item.name}}
					</view>
				</view>
			</view>

			<view>
				<view class="title">
					热门推荐
				</view>
				<view class="tab2">
					<view class="tab22" v-for="item,index in hotList" :key="index" @click="tagSearch(item.name)">
						{{item.name}}
					</view>
				</view>
			</view>
		</view>
		<!-- 选项卡 -->
		<view class="tab" v-if="isShow===true">
			<view class="tabs">
				<view v-for="(item, index) in tablist" :key="index" class="tabs-1"
					:class="{ 'active': isSelected === index }" @click="selectTab(index)">
					{{ item.name }}
				</view>
			</view>
		</view>

		<view class="content" v-if="isShow===true">
			<view v-if="isSelected===0" style="padding: 0 30rpx;">
				<view class="notdate" v-if="userList.length==0">暂无数据</view>
				<view class="list" v-for="(item,index) in userList" :key="index">
					<view class="list-image" @click="goExpertDetail(item)">
						<view class="img">
							<image :src="item.breviary_image" class="image" mode="aspectFill"></image>
							<view class="images">
								<image :src="i" v-for="i,a in item.images" :key="a" mode="aspectFill"></image>
							</view>
						</view>
						<view class="tabs">
							<view class="tabs-item" :style="{'background':i.color}" v-for="i,b in item.tags" v-if="b<3" :key="b">
								{{i.name}}
							</view>
						</view>
						<view style="display: flex;margin-top: -70rpx;position: relative;" v-if="item.distance">
							<view class="juli">
								<view
									style="background: #00BC56;width: 10rpx;height: 10rpx;border-radius: 50%;margin-right: 10rpx;">
								</view> {{item.distance>1000?'>1000':item.distance}}km
							</view>
						</view>
						<view class="btn">
							<image src="https://pw.qyang.cc/static/svg/button.svg"
								style="width: 30rpx;height: 30rpx;margin-right: 10rpx;">
							</image> 邀约
						</view>
					</view>
					<view class="list-con">
						<view class="left">
							<view class="l1"> {{item.nickname}}
								<image src="https://pw.qyang.cc/static/svg/icon-realname.svg"
									style="width: 30rpx;height: 30rpx;margin: 0 20rpx;" v-if="item.is_real==1">
								</image>
								<view class="l1-sex1" v-if="item.gender == 1">
									<image src="https://pw.qyang.cc/static/sexW.png"
										style="width: 20rpx;height: 20rpx;margin-right: 10rpx;"></image>{{item.age}}
								</view>
								<view class="l1-sex2" v-if="item.gender == 0">
									<image src="https://pw.qyang.cc/static/sexM.png"
										style="width: 20rpx;height: 20rpx; margin-right: 10rpx;"></image>{{item.age}}
								</view>
							</view>
							<view v-if="item.ptpj" class="l2">
								<span
									style="font-size: 14px;color: #FF6C91;letter-spacing: 0px;margin-right: 10rpx;">Miss:</span>{{item.ptpj}}
							</view>
							<view v-else-if="item.bio" class="l2">
								{{item.bio}}
							</view>
							<view class="l3">{{item.cm}}cm&nbsp;&nbsp;{{item.kg}}kg&nbsp;&nbsp;{{item.occupation}}
							</view>
						</view>
						<view class="right">
							<view class="r1"> {{item.grade}}</view>
							<view class="r2"> 排名 <span style="color: #FF7681;margin-left: 10rpx;">{{item.rank}}</span>
							</view>
						</view>
					</view>
					<!-- <view v-for="(image,index1) in item.images" :key="index1">
						<image v-if="index1 === 0" :src="image" class="big-image"></image>
						<image v-else :src="image" class="small-image"></image>
					</view> -->
				</view>
			</view>
			<view v-if="isSelected===1">
				<view class="notdate" v-if="dynamicList.length==0">暂无数据</view>
				<square ref="square" :getSquare="getSquare" @getList="getList" :searchContent='searchContent' :searchType="'search'"></square>
			</view>
			<view v-if="isSelected===2" style="padding: 0 30rpx;">
				<view class="notdate" v-if="activityList.length==0">暂无数据</view>
				<view class="activityList" v-for="(item,index) in activityList" :key="index" @click="goActivityDetail(item)">
					<view class="title">
						<!-- <view class="title-tab" v-if="item.is_recommend == 1">
							推荐
						</view> -->
						<view class="title-text">
							{{item.title}}
						</view>
					</view>
					<view class="status">
						<view class="status status0" v-if="item.activity_status == 1">
							筹备中
						</view>
						<view class="status status1" v-if="item.activity_status == 2">
							报名中
						</view>
						<view class="status status2" v-if="item.activity_status == 3">
							已结束
						</view>
					</view>
					<view class="image">
						<image :src="item.image" mode="scaleToFill"></image>
					</view>
					<view class="btn" v-if="item.activity_status == 2">
						<image src="https://pw.qyang.cc/static/svg/button.svg"
							style="width: 30rpx;height: 30rpx;margin-right: 10rpx;">
						</image> 参与
					</view>
					<view class="con">
						<view class="con1">
							<image src="https://pw.qyang.cc/static/svg/biao.svg" mode="aspectFill"
								style="width: 30rpx;height: 30rpx;margin-right: 15rpx;"></image>
							{{item.issue}}
						</view>
						<view class="con1">
							<image src="https://pw.qyang.cc/static/svg/dingwei.svg" mode="aspectFit"
								style="width: 30rpx;height: 30rpx;margin-right: 15rpx;"></image>{{item.address}}
						</view>
						<view class="con1 con2" v-if="item.activity_status > 0">
							<view class="con2-img">
								<image :src="i" mode="" v-for="i,f in item.join_avatar" :key="f"></image>
							</view>
							<view class="con2-text">
								累计 <span style="color: #FF7883;">{{item.join_num}}人</span> 报名
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import square from '../../pages/square/square.vue';
	export default {
		components:{
			square
		},
		data() {
			return {
				statusBarHeight: 0,
				statusBarHeight1: 0,
				titleBarHeight:0,
				maxShowLength: 50,
				historyList: [],
				hotList: [],
				activityList: [],
				userList: [],
				dynamicList: [],
				tablist: [{
					name: '达人'
				}, {
					name: '动态'
				}, {
					name: '活动'
				}],
				searchContent: '',
				isShow: false,
				isSelected: 0,
				city_id:null,
				current_page: 1,
				last_page: 1,
				getSquare:1,
			};
		},
		onLoad() {
			this.city_id = uni.getStorageSync('dw').id
			uni.getSystemInfo({
				success: (res) => {
					// #ifdef MP-WEIXIN
						this.statusBarHeight1 = uni.getMenuButtonBoundingClientRect().top;
						this.titleBarHeight = uni.getMenuButtonBoundingClientRect().height;
						this.statusBarHeight = this.titleBarHeight + this.statusBarHeight1;
					// #endif	
					// #ifndef MP-WEIXIN
						this.statusBarHeight = res.statusBarHeight * 1 + 46;
						this.statusBarHeight1 = res.statusBarHeight;
					// #endif
				},
			});		
			this.getHot()
		},
		onReachBottom() {
			this.current_page += 1
			if (this.current_page <= this.last_page) {
				this.search(this.isSelected, this.current_page)
			}
		},
		methods: {
			tagSearch(name){
				this.searchContent = name
				this.search(0)
			},
			getHot(){
				this.rq.getData('Search/search', {}).then(({data}) => {
					const historyList = data.history.reduce((acc, current) => {
					    if (!acc.find(item => item.name === current.name)) {
					        acc.push(current);
					    }
					    return acc;
					}, []);
					this.hotList = data.hot
					this.historyList = historyList
				})
			},
			// 点赞/收藏
			collectUpdate(item, index, cate) {
				let data = item
				this.rq.getData('collect/set_upvote', {
					id: data.id,
					class: cate,
					type: 1
				}).then((e) => {
					if (cate == 'upvote') {
						if (data.is_upvote == 1) {
							data.is_upvote = 0
							data.upvote_num -= 1
						} else if (data.is_upvote == 0) {
							data.is_upvote = 1
							data.upvote_num += 1
						}
					}
					if (cate == 'collect') {
						if (data.is_collect == 1) {
							data.is_collect = 0
							data.collect_num -= 1
						} else if (data.is_collect == 0) {
							data.is_collect = 1
							data.collect_num += 1
						}
					}
					this.$set(this.dynamicList, index, data)
					uni.showToast({
						title: e.msg,
						icon: "none",
						duration: 1500,
					})
				})
			},
			handleComment(item) {
				console.log('评论');
			},
			handleShare(item) {
				console.log('分享');
			},
			handleMore(item) {
				console.log('更多');
			},
			selectTab(index) {
				this.search(index)
			},
			search(selectedIndex, page) {
				if (this.searchContent == '') {
					uni.showToast({
						icon: 'none',
						title: '请输入搜索内容'
					})
					this.isShow = false
					return
				}
				if (selectedIndex != undefined) {
					this.isSelected = selectedIndex
					this.isShow = true
				}
				if (page != undefined) {
					this.current_page = page
				} else {
					this.current_page = 1
				}
				if (this.isSelected == 0) {
					this.getExpert()
				} else if (this.isSelected == 1) {
					this.getDynamic()
				} else if (this.isSelected == 2) {
					this.getActivity()
				}
			},
			getList(data){
				console.log(data,'2222')
				this.dynamicList = data
			},
			// 获取达人列表
			getExpert() {
				uni.showLoading()
				this.rq.getData('Expert/index', {
					city_id: this.city_id,
					name: this.searchContent,
					page: this.current_page
				}).then(({
					data
				}) => {
					uni.hideLoading()
					if (this.current_page <= 1) {
						this.userList = data.data
						this.last_page = data.last_page
					} else {
						this.userList = this.userList.concat(data.data)
					}
					this.isShow = true
				})
			},
			goExpertDetail(item) {
				uni.navigateTo({
					url: "/subpages/talent/talent?id=" + item.id,
				});
			},
			// 获取动态列表
			getDynamic() {
				this.getSquare = this.getSquare + 1
				// uni.showLoading()
				// this.rq.getData('dynamic/get_dynamic', {
				// 	city_id: this.city_id,
				// 	content: this.searchContent,
				// 	page: this.current_page,
				// 	limit: 5
				// }).then(({
				// 	data
				// }) => {
				// 	uni.hideLoading()
				// 	if (this.current_page <= 1) {
				// 		this.dynamicList = data.data
				// 		this.last_page = data.last_page
				// 	} else {
				// 		this.dynamicList = this.dynamicList.concat(data.data)
				// 	}
				// 	this.dynamicList = this.dynamicList.map(item => {
				// 		// 使用Object.assign方式添加字段
				// 		return Object.assign({}, item, {
				// 			// contentLines: this.calculateContentLines(item.content),
				// 			isExpanded: false
				// 		});
				// 	});
				// 	this.isShow = true
				// })
			},
			goDynamicDetail(item) {
				uni.navigateTo({
					url: "/pages/square/detail?id=" + item.id,
				});
			},
			// 获取活动列表
			getActivity() {
				uni.showLoading()
				this.rq.getData('User_Activity/index', {
					city_id: this.city_id,
					name: this.searchContent,
					page: this.current_page
				}).then(({
					data
				}) => {
					uni.hideLoading()
					if (this.current_page <= 1) {
						this.activityList = data.data
						this.last_page = data.last_page
					} else {
						this.activityList = this.activityList.concat(data.data)
					}
					this.isShow = true
				})
			},
			goActivityDetail(item) {
				uni.navigateTo({
					url: "/subpages/activity/detail?id=" + item.id,
				});
			},
			delHistory() {
				let that = this
				uni.showModal({
					title:'是否清空搜索记录？',
					success(res) {
						if (res.confirm) {
							that.rq.getData('Search/delete', {}).then(({data}) => {
								that.getHot()
								uni.showToast({
									title:'删除成功',
									icon:'none'
								})
							})
						}
					}
					
				})
			},
			goBack() {
				uni.navigateBack()
			},
			showContent(content) {
				const currentItem = this.dynamicList.find(item => item.content === content);
				if (currentItem.isExpanded) {
					return content;
				}
				return content.slice(0, this.maxShowLength);
			},
			// 点击展开/收起按钮的处理方法
			toggleExpand(item, index) {
				this.dynamicList[index].isExpanded = !this.dynamicList[index].isExpanded;
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page{
		min-height: 100vh;
		// background: #ffffff;
	}
	.notdate {
		display: flex;
		flex-direction: column;
		align-items: center;
		font-size: 34rpx;
		margin-top: 200rpx;
		color: #999999;
	}

	.content {
		padding: 20rpx 0 100rpx 0;
		position: relative;

		.dynamicList {
			margin-bottom: 20rpx;
			background-color: #ffffff;
			width: 100%;
			height: fit-content;
			display: flex;
			flex-direction: row;
			padding: 20rpx;

			.left {
				margin-top: 30rpx;
				margin-right: 20rpx;

				image {
					width: 44px;
					height: 44px;
					border-radius: 50%;
				}
			}

			.right {
				width: 0;
				flex: 1;
				padding-right: 40rpx;

				.r1 {
					display: flex;
					align-items: center;
					padding: 20rpx 0;
					width: 100%;

					.name {
						min-width: 72px;
						max-width: 250rpx;
						font-size: 18px;
						font-weight: 500;
						line-height: 17px;
						letter-spacing: 0px;
						color: #000000;
						overflow: hidden;
						white-space: nowrap;
						text-overflow: ellipsis;
						-o-text-overflow: ellipsis;
					}

					.tuijian {
						width: 79px;
						height: 24px;
						border-radius: 33px;
						opacity: 1;

						background: #FF7681;
						font-size: 12px;
						font-weight: normal;
						line-height: 18px;
						letter-spacing: 0px;
						display: flex;
						align-items: center;
						justify-content: center;
						color: #FFFFFF;
						margin-left: 10rpx;
					}

					.fenlei {
						min-width: 72px;
						max-width: 100px;
						height: 24px;
						border-radius: 33px;
						opacity: 1;

						background: rgba(251, 182, 187, 0.14);
						font-size: 12px;
						font-weight: normal;
						line-height: 18px;
						letter-spacing: 0px;
						color: #F7635C;
						display: flex;
						align-items: center;
						justify-content: center;
						padding: 0 10rpx;

						.fenlei1 {
							overflow: hidden;
							white-space: nowrap;
							text-overflow: ellipsis;
							-o-text-overflow: ellipsis;
						}
					}
				}

				.r2 {
					display: flex;
					align-items: center;
					font-size: 12px;
					font-weight: normal;
					line-height: 12px;
					letter-spacing: 0px;
					color: #999999;
					width: 100%;

					.r2-con {
						margin-left: 20rpx;
					}

					.r2-time {
						margin-right: 40rpx;
						position: absolute;
						right: 0;
					}

					.r2-sex1 {
						display: flex;
						width: 42px;
						height: 16px;
						border-radius: 88px;
						opacity: 1;
						background: rgba(116, 220, 254, 0.2);

						font-size: 11px;
						font-weight: 500;
						line-height: 15px;
						display: flex;
						align-items: center;
						justify-content: center;
						letter-spacing: 0px;
						color: #2BC1F1;

					}

					.r2-sex2 {
						display: flex;
						width: 42px;
						height: 16px;
						border-radius: 88px;
						opacity: 1;

						background: rgba(253, 168, 175, 0.2);

						font-size: 11px;
						font-weight: 500;
						line-height: 15px;
						display: flex;
						align-items: center;
						justify-content: center;
						letter-spacing: 0px;
						color: #FDA8AF;

					}
				}

				.r3 {
					display: flex;

					.tabs {
						display: flex;
						position: relative;
						margin: 15rpx 0;

						.tabs-item {
							font-family: PingFang SC;
							font-size: 12px;
							font-weight: normal;
							line-height: 18px;
							display: flex;
							align-items: center;
							justify-content: center;
							letter-spacing: 0px;
							color: #FFFFFF;
							height: 22px;
							border-radius: 20px;
							opacity: 1;
							background: #FF6C91;
							margin-right: 15rpx;
							padding: 0 10rpx;

						}
					}
				}

				.r4 {
					// display: flex;
					font-size: 14px;
					font-weight: normal;
					line-height: 21px;
					letter-spacing: 0px;
					color: #333333;
					width: 295px;

					.expand-btn {
						font-size: 13px;
						font-weight: normal;
						line-height: 21px;
						letter-spacing: 0px;
						color: #FF7883;
					}
				}

				.r5 {
					display: flex;

					.image {
						display: flex;
						margin-right: 10rpx;
					}
				}

				.r6 {
					display: flex;
					align-items: center;
					width: 293px;
					height: 26px;
					border-radius: 4px;
					opacity: 1;

					background: rgba(0, 188, 86, 0.05);
					font-size: 11px;
					font-weight: normal;
					line-height: 12px;
					letter-spacing: 0px;
					margin: 10rpx 0;
					color: #00BC56;

					image {
						width: 13px;
						height: 13px;
						margin: 0 20rpx;
					}
				}

				.r7 {
					display: flex;
					align-items: center;
					width: 293px;
					height: 26px;
					border-radius: 4px;
					opacity: 1;

					background: rgba(255, 119, 43, 0.05);
					font-size: 11px;
					font-weight: normal;
					line-height: 12px;
					letter-spacing: 0px;
					margin: 10rpx 0;
					color: #FF772B;

					image {
						width: 13px;
						height: 13px;
						margin: 0 20rpx;
					}
				}

				.r8 {
					font-size: 13px;
					font-weight: 500;
					line-height: 14px;
					letter-spacing: 0px;
					color: #333333;
					display: flex;
					justify-content: space-between;
					align-items: center;
					margin: 20rpx 0;
					width: 293px;

					.image {
						width: 100rpx;
						display: flex;
						align-items: center;
					}

					image {
						width: 16px;
						height: 16px;

						margin-right: 10rpx;
					}
				}
			}
		}

		.activityList {
			margin-bottom: 30rpx;
			border-radius: 10px;
			background-color: #ffffff;
			width: 100%;
			// height: 686rpx;
			display: flex;
			flex-direction: column;
			align-items: flex-start;

			.title {
				font-size: 14px;
				font-weight: 600;
				line-height: 2px;
				letter-spacing: 0px;
				color: #333333;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				// // width: 600rpx;
				// padding: 30rpx;
				// position: relative;
				// margin: 10rpx 0;
				padding: 10rpx 28rpx;
				position: relative;
				margin: 10rpx 0;
				width: 550rpx;
				display: flex;
				align-items: center;

				.title-tab {
					width: 50px;
					height: 40rpx;
					border-radius: 4px;
					opacity: 1;

					background: #FF7681;
					font-size: 12px;
					font-weight: normal;
					line-height: 12px;
					text-align: center;
					letter-spacing: 0px;
					color: #FFFFFF;
					margin-right: 10rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}

				.title-text {
					width: 500rpx;
					height: 40rpx;
					line-height: 40rpx;
					text-overflow: ellipsis;
					overflow: hidden;
					white-space: nowrap;
				}
			}

			.image {
				width: 100%;
				height: 400rpx;

				image {
					width: 100%;
					height: 400rpx;
				}
			}

			.status {
				position: absolute;
				right: 0;
				margin-right: 30rpx;
				width: 54.64px;
				height: 24.72px;
				border-radius: 0px 8px 0px 8px;
				opacity: 1;

				font-size: 13px;
				font-weight: 500;
				line-height: 12px;
				text-align: center;
				letter-spacing: 0px;
				// background: #84E28C;
				color: #FFFFFF;
				display: flex;
				align-items: center;
				justify-content: center;

				.status0 {
					background: #AE9CFE;
					margin-right: -1rpx;
				}

				.status1 {
					background: #84E28C;
					margin-right: -1rpx;
				}

				.status2 {
					background: rgba(153, 153, 153, 0.1);
					color: #999999;
					margin-right: -1rpx;
				}

			}

			.btn {
				right: 35%;
				position: absolute;
				width: 115px;
				height: 38px;
				display: flex;
				align-items: center;
				justify-content: center;
				border-radius: 99px;
				opacity: 1;
				margin-top: 445rpx;
				background: #FF7681;
				font-family: PingFang SC;
				font-size: 18px;
				font-weight: normal;
				line-height: 18px;
				letter-spacing: 0px;
				color: #FFFFFF;
				text-shadow: 0px 1px 4px rgba(108, 37, 37, 0.25);
			}

			.con {
				width: 100%;
				padding: 20rpx 0;

				.con1 {
					font-family: 阿里巴巴普惠体 2.0;
					font-size: 13px;
					font-weight: normal;
					line-height: 12px;
					letter-spacing: 0px;
					margin: 20rpx;
					color: #333333;
					display: flex;
					align-items: center;
				}

				.con2 {
					display: flex;

					.con2-img {
						width: 460rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;

						image {
							width: 21px;
							height: 21px;
							border-radius: 50%;
							margin-right: 10rpx;
						}
					}

					.con2-text {
						font-family: PingFang SC;
						font-size: 14px;
						font-weight: normal;
						line-height: 12px;
						letter-spacing: 0px;

						font-variation-settings: "opsz" auto;
						/* 累计 */
						color: #000000
					}
				}
			}
		}

		.list {
			margin-bottom: 30rpx;
			border-radius: 10px;
			background-color: #ffffff;
			width: 100%;
			height: 600rpx;
			display: flex;
			flex-direction: column;
			flex-wrap: wrap;
			align-items: flex-start;

			.list-image {
				object-fit: cover;
				width: 100%;
				border-radius: 10px;
				height: 65%;
				overflow: hidden;
				.img{
					height: 100%;
					display: flex;
					.image {
						// position: absolute;
						width: 0;
						flex:1;
						height: 100%;
					}
					.images {
						display: flex;
						flex-direction: column;
						justify-content: space-between;
						margin-left: 4rpx;
						width:30%;
						image {
							width: 100%;
							height: 33%;
						}
					}
				}

				.tabs {
					display: flex;
					position: absolute;
					margin-top: -370rpx;
					margin-left: 20rpx;

					.tabs-item {
						font-family: PingFang SC;
						font-size: 12px;
						font-weight: normal;
						line-height: 18px;
						display: flex;
						align-items: center;
						justify-content: center;
						letter-spacing: 0px;
						color: #FFFFFF;
						height: 22px;
						border-radius: 20px;
						opacity: 1;
						background: #FF6C91;
						margin-right: 10rpx;
						padding: 0 10rpx;
					}
				}

				.juli {
					height: 17px;
					border-radius: 22px;
					opacity: 1;
					background: rgba(255, 255, 255, 0.86);
					// background: rgba(255, 255, 255, 0.86);
					font-family: 阿里巴巴普惠体 2.0;
					font-size: 13px;
					font-weight: normal;
					line-height: 6px;
					letter-spacing: 0px;
					padding: 0 10rpx;
					color: #00BC56;
					display: flex;
					align-items: center;

					margin-left: 20rpx;
				}

				.btn {
					right: 35%;
					position: absolute;
					width: 115px;
					height: 38px;
					display: flex;
					align-items: center;
					justify-content: center;
					border-radius: 99px;
					opacity: 1;

					background: #FF7681;
					font-family: PingFang SC;
					font-size: 18px;
					font-weight: normal;
					line-height: 18px;
					letter-spacing: 0px;

					color: #FFFFFF;
					margin-top: -20rpx;
					text-shadow: 0px 1px 4px rgba(108, 37, 37, 0.25);
				}
			}


			.list-con {
				display: flex;
				height: 35%;
				width: 100%;

				.left {
					margin-top: 35rpx;
					margin-left: 10rpx;
					padding: 20rpx;
					flex: 1;
					width: 500rpx;

					.l1 {
						font-family: PingFang SC;
						font-size: 18px;
						font-weight: 600;
						line-height: 18px;
						letter-spacing: 1px;
						color: #272B2D;
						display: flex;
						margin-bottom: 10rpx;

						.l1-sex1 {
							display: flex;
							width: 42px;
							height: 16px;
							border-radius: 88px;
							opacity: 1;
							background: rgba(116, 220, 254, 0.2);

							font-size: 11px;
							font-weight: 500;
							line-height: 15px;
							display: flex;
							align-items: center;
							justify-content: center;
							letter-spacing: 0px;
							color: #2BC1F1;

						}

						.l1-sex2 {
							display: flex;
							width: 42px;
							height: 16px;
							border-radius: 88px;
							opacity: 1;

							background: rgba(253, 168, 175, 0.2);

							font-size: 11px;
							font-weight: 500;
							line-height: 15px;
							display: flex;
							align-items: center;
							justify-content: center;
							letter-spacing: 0px;
							color: #FDA8AF;

						}
					}

					.l2 {
						font-family: PingFang SC;
						font-size: 11px;
						font-weight: normal;
						line-height: 19px;
						letter-spacing: 1px;
						color: #000000;
						margin-bottom: 10rpx;
						overflow: hidden;
						/* 超出元素宽度的内容隐藏起来 */
						text-overflow: ellipsis;
						/* 当文本溢出时显示省略号 */
						white-space: nowrap;
					}

					.l3 {
						font-family: PingFang SC;
						font-size: 12px;
						font-weight: normal;
						line-height: 12px;
						letter-spacing: 0px;

						color: #999999;
						margin-bottom: 10rpx;
					}
				}

				.right {
					margin-top: 35rpx;
					padding: 20rpx;
					margin-right: 10rpx;

					.r1 {
						font-family: PingFang SC;
						font-size: 30px;
						font-weight: normal;
						line-height: 18px;
						letter-spacing: 0px;
						margin-bottom: 20rpx;

						color: #FF5866;

					}

					.r2 {
						font-family: PingFang SC;
						font-size: 12px;
						font-weight: normal;
						line-height: 12px;
						text-align: right;
						letter-spacing: 0px;

						color: #333333
					}

				}
			}


			// .big-image {
			// 	width: 60%;
			// 	height: 100%;
			// 	border-radius: 10px;
			// 	object-fit: cover; // 让图片按比例填充元素，可能会裁剪图片以保持宽高比
			// 	display: block;
			// 	/* 确保图片显示为块级元素，一般是需要的 */
			// 	visibility: visible;
			// 	/* 确保图片是可见的，而不是设置为了hidden等不可见状态 */
			// }

			// .small-image {
			// 	width: 35%;
			// 	height: 90rpx; // 根据实际情况调整小图高度，保证整体布局美观
			// 	border-radius: 10px;
			// 	object-fit: cover;
			// 	margin-bottom: 10rpx; // 小图之间添加一定间距，可根据需求调整
			// 	display: block;
			// 	visibility: visible;
			// }
		}
	}

	.keyword-tab {
		width: 100%;
		height: 100%;
		position: relative;
		background-color: #ffffff;
		padding: 0 20rpx 100rpx;
	
		.title {
			font-size: 30rpx;
			font-weight: normal;
			line-height: 13px;
			letter-spacing: 0px;
			padding: 30rpx 10rpx;
			color: #333333;
		}


		.tab1 {
			display: flex;
			flex-wrap: wrap;
			padding: 0 20rpx;
			max-height: 160rpx;
			overflow: auto;
			.tab11 {
				display: flex;
				padding: 0 20rpx;
				width: fit-content;
				height: 50rpx;
				border-radius: 99px;
				opacity: 1;
				background: #E6F9EF;
				font-size: 26rpx;
				font-weight: normal;
				line-height: 32rpx;
				letter-spacing: 0px;
				color: #333333;
				align-items: center;
				justify-content: center;
				margin-right: 20rpx;
				margin-bottom: 20rpx;
			}

			.tab12 {
				display: flex;
				align-items: center;
				justify-content: center;
				color: gray;
				font-size: 16px;
			}

		}

		.tab2 {
			display: flex;
			flex-wrap: wrap;
			padding: 0 20rpx;
			max-height: 160rpx;
			overflow: auto;
			.tab22 {
				display: flex;
				padding: 0 20rpx;
				width: fit-content;
				height: 50rpx;
				border-radius: 99px;
				opacity: 1;
				background: #FFEFF0;
				font-size: 26rpx;
				font-weight: normal;
				line-height: 32rpx;
				letter-spacing: 0px;
				color: #333333;
				align-items: center;
				justify-content: center;
				margin-right: 20rpx;
				margin-bottom: 20rpx;
			}
		}
	}

	.tab {
		position: relative;

		.tabs {
			background-color: #ffffff;
			display: flex;
			justify-content: center;
			height: 60rpx;

			.tabs-1 {
				flex: 1;
				justify-content: center;
				align-items: center;
				display: flex;

				font-size: 14px;
				font-weight: normal;
				line-height: 15px;
				letter-spacing: 0px;

				color: #999999;
			}

			.tabs-1.active {
				position: relative;
				font-size: 15px;
				font-weight: 600;
				line-height: 15px;
				letter-spacing: 0px;
				transition: all 0.3s ease;
				color: #333333;
			}

			.tabs-1.active::after {
				border-radius: 3px;
				opacity: 1;
				background: #FF7883;
				content: '';
				position: absolute;
				bottom: 0;
				left: 50%;
				transform: translateX(-50%);
				width: 55rpx;
				height: 3px;
				transition: width 0.3s ease, opacity 0.3s ease;
			}
		}
	}

	.header {
		width: 100%;
		height: auto;
		display: table;
		position: fixed;
		top: 0px;
		left: 0px;
		z-index: 10;
		background-color: #ffffff;

		.header-back {
			margin-right: 10rpx;
			margin-left: 10rpx;
			height: 36.36%;
			line-height: 13px;
		}

		.navon {
			width: 100%;
			height: auto;
			position: absolute;
			top: 0px;
			left: 0px;
			box-sizing: border-box;
			font-weight: 500;
			font-size: 36rpx;
			display: flex;
			align-items: center;

			.search-input {
				width: 450rpx;
				height: 70%;
				border-radius: 99px;
				opacity: 1;
				background: #F5F6FA;
				font-size: 13px;
				font-weight: normal;
				line-height: 13px;
				letter-spacing: 0px;

				color: #999999;

				box-sizing: border-box;
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-size: 30rpx;
				padding: 0 20rpx;

				input {
					padding-left: 10rpx;
					color: gray;
					font-size: 28rpx;
				}
			}

		}

	}
</style>